<template>
    <div class="excepttion">
     <img src="../../assets/images/404.jpg" alt="">
     <n-button class="btn-home" type="warning" @click="goHome">回首页</n-button>
    </div>
</template>

<script lang="ts" setup>
import { useRouter } from 'vue-router';
const route = useRouter()
 name:'404'
 const goHome=()=>{
   route.push('/')
 }

</script>

<style lang="scss">
.excepttion{
    position: relative;
    img{
        width: 100%;
        height: 100vh;
    }
    .btn-home{
        position: absolute;
        top: 52%;
        left: 69%;
        color: yellow;
    }
}

</style>